package org.xxpay.pay.service.impl;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.xxpay.core.common.constant.Constant;
import org.xxpay.core.common.util.MyLog;
import org.xxpay.core.entity.PayAlizftMchInfo;
import org.xxpay.core.service.IXxPayAlizftpayApiService;
import org.xxpay.pay.channel.alizftpay.AlizftpayApiService;

@Service(interfaceName = "org.xxpay.core.service.IXxPayAlizftpayApiService", version = Constant.XXPAY_SERVICE_VERSION, retries = Constant.DUBBO_RETRIES)
public class XxPayAlizftpayApiServiceImpl implements IXxPayAlizftpayApiService {

    private static final MyLog _log = MyLog.getLog(XxPayAlizftpayApiServiceImpl.class);

    @Autowired
    private AlizftpayApiService alizftpayApiService;

    @Override
    public String alipayApplymentSubmit(PayAlizftMchInfo mch) {
        return alizftpayApiService.alipayApplymentSubmit(mch);
    }

    @Override
    public String queryAndUpdateStatus(Long subMchId) {
        return alizftpayApiService.queryAndUpdateStatus(subMchId);
    }

}
